#pragma once


#include "CoreMinimal.h"
#include "Widgets/SCompoundWidget.h"

DECLARE_DELEGATE_OneParam(FOnClickedEvent, FString);


class SInputGroupList : public SCompoundWidget
{

public:
	SLATE_BEGIN_ARGS(SInputGroupList)
	{
	}
	SLATE_EVENT(FOnClickedEvent, UpdateDetailsView)

		SLATE_END_ARGS()


public:
	void Construct(const FArguments& InArgs);
	void UpdateList(bool OnlyUp = false);

private:
	TSharedPtr<SVerticalBox> ListBox;

	void CallUpdateDetailsView(FString GroupKey);

	FOnClickedEvent UpdateDetailsView;
};